Environmental Affection-Driven English Tense Analysis: A Healthcare Exercise-Based Corpus Case Study over Public English Environment

Most international academic papers are written in English, and the use of tenses in English academic papers often follows some conventional rules. Automatically extracting and analyzing English tenses in scientific papers have begun to attract researchers' attention for the global environment. In the analysis of the English tense of scientific papers, consider that the neural network model that combines attention mechanism and sequential input network such as Long Short-Term Memory (LSTM) network has a long training time, low extraction accuracy, and cannot parallelize text input. We propose an environmental affection-driven English tense analysis model, which includes an attention mechanism and LSTM model and conducts a temporal analysis of English texts based on an affective computing model. In this paper, our proposed method is verified based on the self-built healthcare exercise-based corpus over public English environment. By comparison, the experimental results show that the method proposed in this paper has better performance than ordinary Convolutional Neural Network (CNN), Support Vector Machine (SVM), and LSTM based on attention mechanism.


Introduction
English tense (tense) is a verb form that expresses behavior, action, and state under various time conditions. It is a very basic and important grammar knowledge. Different tenses are used to express different times and ways of verbs. According to traditional grammar, there are 16 tenses in English. Specifically, there are four kinds of time: present, past, future, and past and future. ere are also four kinds of action: general, ongoing, complete, and complete, and the combination of time and action will produce 16 tenses. English tenses involve every complete sentence and are widely and universally used. After comparing the expression forms of English and Chinese tenses, it is not difficult to find that English tenses are mostly reflected in grammatical forms, while Chinese use more function words or combinations of other words to express the concept of tenses, lacking grammatical morphological changes, which makes English learners in China, including scientific and technological workers, have constant difficulties in the process of tense acquisition, learning and use, which is undoubtedly a great challenge for a new language knowledge [1,2]. Most of the international academic papers are written in English. For the vast number of Chinese research paper researchers, the tense of English papers is both the key and the difficulty.
In recent years, researchers have introduced machinelearning methods into the fields of English tense analysis, English semantic understanding, multilingual tense conversion, and English-Chinese translation. However, these methods all belong to the category of shallow learning, and the function models and calculation methods are relatively simple, which makes them unable to express some complex functions with positive samples and calculation units, and the general ability is weak. At the same time, a large number of data features need to be manually selected. ese defects have caused machine-learning methods to encounter bottlenecks in this task. Deep learning can automatically learn important feature representations from raw data to handle various complex tasks and has obvious advantages in modeling, interpretation and expression capabilities, and optimization. Convolutional neural network (CNN) [3,4] and recurrent neural expressive ability and optimization have obvious advantages. CNNs can extract localized structural information in data, while recurrent neural networks [5] can process serialized structural information. In recent years, there has also been a composite model combining the two model structures, which has achieved friendship effects in the field of English tense analysis. e attention mechanism is the latest achievement in the current deep learning field, which can capture the most representative features in the text and optimize the model structure [6][7][8].
Sentiment analysis, also known as opinion mining, refers to people's sentiments, opinions, evaluations, attitudes, and affections about services, products, organizations, individuals, issues, events, topics, and their attributes. Text sentiment analysis is a branch of sentiment analysis, whose purpose is to judge the speaker's sentiment toward things from the original text. Machine learning based methods can be applied in the field of sentiment analysis. e tendency calculation of text sentiment is helpful for the tense understanding and verification of scientific papers. Using environmental affection-driven analysis of English tenses in scientific papers can better understand and judge the accuracy of tense use. is paper considers including environmental affection analysis into English tense analysis, analyzes English tense based on environmental affection drive, proposes an English tense analysis method based on environmental affection drive, and evaluates it using a corpus based on healthcare exercise. e main contributions of our paper can be summarized as follows: (1) An environmental affection-driven English tense analysis method is proposed, and the affective computing model is integrated into the English tense analysis framework to improve the system performance. (2) An attention mechanism is introduced, which can give more consideration to contextual temporal correlation, and the attention mechanism is integrated with the LSTM model to analyze the English tense. (3) e method proposed in this paper is compared with three types of popular methods, from the perspective of system performance and operating efficiency. e effectiveness of this method was evaluated.
is paper is organized as follows: Section 2 describes the related work. Section 3 details our method. Section 4 provides the evaluation results of our method. Section 5 concludes our paper at last. Murata [9,10] used various machine-learning methods (Kproximity algorithm, decision table, maximum entropy, support vector machine) to deal with Japanese-English tense translation and found that support vector machine works best. Gong et al. [11] proposed an N-gram-based temporal translation model and synthesized it with a phrase-based statistical machine translation system. In this model, the tense of a certain verb in an English sentence is called intrasentence tense, and the tense of a verb in the main clause of an English sentence is called inter tense. e respective N-gram models are trained by constructing an intra-sentence temporal sequence corpus and an inter-sentence temporal sequence corpus. en, using these two N-gram models to correct the probability value of the translation result, the BLEU value increased from 28.30 to 28.92. However, the model does not utilize the information of temporal words, temporal adverbs, and temporal particles of Chinese sentences, and only uses the tense N-gram model to guess the possible temporal sequences.

Related Work
In recent years, deep learning technology has made significant breakthroughs in text classification tasks, and many scholars have used deep learning technology to solve specific target sentiment analysis problems. Nguyen and Shirai [12] proposed a target-specific sentiment analysis model based on RNN and dependency tree. Dong et al. [13] proposed an adaptive RNN for the target-specific Twitter text sentiment classification task. ese methods use deep learning technology to solve the problem of specific target sentiment analysis, which can better learn the sentiment feature information of text through deep neural network without the need for sentiment dictionary, and achieve better classification results than traditional machine learning methods. However, these methods need to use external knowledge such as dependency tree and syntactic relationship, and the network model structure is relatively complex. Ruder et al. [14] proposed a hierarchical bidirectional LSTM network for target-specific sentiment analysis. is method uses a bidirectional LSTM network to extract and learn features from the input text at different levels, which can effectively learn the internal relationship of sentences and the relationship between sentences. erefore, the affective polarity of a specific target can be judged. However, the main disadvantage of the deep learning based methods is that they cost too much time on training. is limits the application. In this paper, we introduce an environmental affective computing model and combine it with the deep learning technology to analyze the English tense.

Our Method
e topological relationship between words is crucial for text temporal analysis, and language models based on recurrent neural network (RNN) are more suitable for processing text sequence data. RNN consists of three modules, namely input layer, hidden layer, and output layer [15,16]. In the RNN model, the temporal input layer and the temporal hidden layer are aggregated into a new input layer, which also serves as the hidden layer at time t. e recurrent structure of RNN enables the hidden layer to retain all the information in the previous words to improve the ability to recognize the sequential relationship between words [17,18]. ere are too many unrolled state layers in the back-propagation of the RNN model through the Temporal Optimization Algorithm (BPTT), which causes the gradient of historical information to decay during training [19]. In this paper, LSTM is used to avoid the long-term dependence of the model on words, and its structure is shown in Figure 1. RNN with LSTM can be seen as an improved model of traditional RNN language model, which takes text sentences as input sequence to calculate the error of each model. But when the text sequence information is long, the RNN model with LSTM can effectively overcome the problem of sequence information decay [20]. Compared with traditional RNN language models, RNN with LSTM can fully cover longer sentences, and it performs well in multiple validation experiments, especially for English sentence structures with connectives. e environmental affection-driven LSTM proposed in this paper introduces an attention mechanism and an environmental affection-driven computational model to improve performance, and the overall architecture is shown in Figure 1. ere are six steps included in total, which are the following: environmental affection-driven computational model establishment, LSTM construction, attention mechanism inclusion, natural language inference instantiation, pooling and feature fusion, model training, and testing.

Environmental Affection-Driven Computational Models.
e propensity calculation of text sentiment [21,22] is helpful for the temporal understanding and verification of scientific papers. In this paper, a sentiment-driven computational classification model S EPD is established, namely: S EPD � {E, P, D, C, G}. In the formula, E is the affective tendency set; P is the temporal affective feature set; D is the affective feature degree score set; C: D ⟶ P is a surjective function; G: C ⟶ E is also a surjective function.
E is the set of affective tendencies of scientific papers, and if affections are divided into m categories, then E � {e 1 , e 2 , . . ., e m }. P is a set of temporal affective features, and if there are n features, then P � {p 1 , p 2 , . . ., p n }. D is the set of degree scores of a sentence in the paper on each affective feature, namely D � {d 1 , d 2 , . . ., d n }. When k degree words d_w appear in the feature p i in a sentence, then d i � k j�1 d w j . C: D ⟶ P is a surjective function connecting sentiment degree to feature, that is, C(P) � d i p i. G: C ⟶ E is a surjective function connected by the degree of modified affection-toaffection inclination. e category of the final affective tendency is determined by the Softmax function:

LSTM Construction.
e LSTM model is used to deal with the problem of sequence labeling, which can make full use of the information of the entire text sequence, including the relationship information between each word, and use this information for the processing of each word [23,24]. An LSTM model contains many LSTM cells, each LSTM cell contains an input gate, an output gate, a forget gate, and a memory cell [25,26]. Let c represent the memory unit of the LSTM model, x the input gate of the LSTM model, f the forgetting gate of the LSTM model, and h the output gate of the LSTM model. Take the text local features {x 1 , x 2 , . . ., x m } as input, take the t th word as an example, activate the memory unit, and obtain the feature value of each state of the t th LSTM unit. e word is as follows: Among them, rec is the activation function; W represents the weight matrix of LSTM; b represents the bias vector of LSTM; σ is the sigmoid function; ⊙ represents the pointwise product. Similarly, after building the reverse LSTM model, the output feature of each word of the bidirectional LSTM contains the information of the entire sentence.

Attention Mechanism Inclusion.
e attention probability is calculated using the attention mechanism [27,28]. Attention probability can highlight the importance of a specific word to the whole sentence, and the introduction of attention mechanism considers more contextual temporal associations [29]. erefore, the model needs to evaluate the importance of the information generated at different moments, thus introducing the attention mechanism.
In this paper, the state of each moment of the hidden layer output by the third layer is taken as the hidden state set A � (a 1 M , a 2 M , . . . , a t M ), where a T M represents the state of hidden layer of the last layer of LSTM at the t th moment, and using A as the input of the attention mechanism. We can calculate the degree e t ′ t that the output sequence at time t needs to pay attention to the hidden state at time t ′ . e t ′ t can be calculated by building a simple neural network, the network parameters are W h and b h , as shown in the following formula: After obtaining e t ′ t , the weight α t ′ t of which the output sequence at time t pay attention to hidden state at time t ′ can be calculated, as shown in the following formula. at is to find the proportion of the attention degree at time t' to the attention degree at all times.
Journal of Environmental and Public Health erefore, the total weight factor r t at time t is obtained as follows: e final output of LSTM at time t is obtained as follows:

Natural Language Inference
Instantiation. e purpose of natural language inference (NLI) is to establish the semantic relationship between the premise sentence and the corresponding hypothesis sentence. A total of 32 sentences and their corresponding passive voice sentences are syntactically annotated. Following Bowman's standard procedure, two sentence encoding models are introduced in this paper, with binding parameters for premise sentences and hypothetical sentences respectively. Given the output codes s p and s h of the hypothetical premise, the relationship can be expressed as the concatenation of s p , s h , s p −s h and s p ⇔ s h .
is is fed into a 300D fully connected layer, which is then fed back into the three-unit output layer and Softmax for computing the probability distribution of the model's three relationships.

Pooling and Feature Fusion.
Pooling is to perform statistical calculation on the output results of the model, and use the maximum pooling method to pool the corresponding output features F � {F 1 , F 2 , . . ., F m } after the attention mechanism is introduced to the entire sentence.
After pooling, the overall feature d of the text is obtained. Regardless of the length of the sentence, the feature dimension after pooling is fixed, which solves the problem of different lengths of text sentences.
Feature fusion is to fuse multiple features into one feature, which can achieve the effect of complementary advantages of multiple features. e local features of the text and the overall features of the text are fused to obtain a new feature F′; then the fused feature F′ is imported into the classifier for relation classification, and the classification result s(x) is output.

Model Training and
Testing. Similar to supervised machine learning methods, the dataset is divided into training data and test data. e model is then trained using the training data to learn the relevant parameters of the network. e relation classification problem is regarded as a multiclassification problem judgment. In order to obtain the optimal model, this paper conducts model training by minimizing the negative log-likelihood function. Assuming that the relationship label type μ∈T obtained from the target relationship is s(x) after being processed by the classifier, T represents the relationship label, and is converted into a conditional probability after being processed by the classifier. e probability that the label type of the target relation y is μ is e stochastic gradient descent algorithm is used to minimize the negative log-likelihood function, and the objective function J(θ) of the model optimization is calculated as follows: Among them, θ � (W, U, V) represents the model trainable parameters; D represents the number of training samples; (x i , y i ) represents that the relationship label corresponding to the i th sample x i in the training sample is y i . Next, test data is fed into the model to evaluate performance. Because of the limited size of the dataset, validation data is not used here. Meanwhile, since the system considers language-independent annotation schemes, K-fold validation can be used to improve the performance of the dataset.

Healthcare Exercise-Based Corpus.
e method proposed in this paper requires an annotated language dataset, and in order to train, develop, train, and evaluate the system, a self-built healthcare exercise-based corpus case study is used. A corpus refers to a collection of corpus of a certain size that is specially collected for one or more applications, has a certain structure, and can be retrieved by a computer program [30]. e structural and representative characteristics of a corpus are often determined by the category information under the corpus. More specifically, the distribution of categories completely determines the characteristics of the corpus. e self-built corpus in this paper mainly includes selfbuilt book-type literature and self-built journal type literature. e author selects all medical and health papers from the SCI (American Science Citation Index) database, because the SCI database is the most widely used and highly recognized database in the world. It has good retrieval quality and includes a high level of journal. In China, the quantity and quality of papers included in SCI are also used as important indicators to evaluate the level of scientific research. In this paper, a total of 112 medical and health related scientific papers in nine categories are selected from more than a dozen international authoritative journals as research samples. e specific distribution is shown in Figure 2. Each circle represents a category of medical and health scientific research papers, which are the following: COVID-19 (16), Depression (15), Mental Health (15), Dementia (14), Epidemiology (14), Metabolic Syndrome (13), Diabetes (9), Oral Health (8), Obesity (8).
e number of papers is in brackets. Each scientific paper can be divided into six parts, namely: Abstract, Introduction, Related Work, Model and Approach, Experimental Results, Conclusion.

Evaluation Metrics.
In this paper, three metrics which are precision, recall, and F-score, are used for evaluating model performance. ey are calculated as follows: Among them, TP is the number of correctly predicted samples as positive, FP is the number of wrongly predicted samples as positive (they are negative samples actually), and FN is the number of wrongly predicted samples as negative (they are positive samples actually).

Parameter Setting.
e activation function of the model uses the rectified linear activation (ReLU) function, the number of hidden layer nodes is 300, and softmax is used as the classifier. In order to prevent the overfitting phenomenon in the model calculation process, the L2 regularization method is used to constrain the network parameters, and the dropout strategy is also introduced in the training process, and the dropout rate is set to 0.5. In addition, the batch Adadelta optimization method is used for model training, the batch size is taken as 50 (Refer to citation [31]), and the number of training rounds is taken as 500. Among them, the code loss rate and the number of training rounds are both obtained by fivefold cross-validation, and the validation set is randomly obtained from the training samples.

Healthcare based Corpus
Covid-19  e method proposed in this paper is compared with the following three types of methods: (1) CNN. Based on the convolutional neural network model proposed in the literature [32], it is the most basic convolutional neural network. (2) SVM.
e feature-based SVM classification model proposed in literature [33] achieves better classification results than previous studies.
(3) AT-LSTM. e LSTM network based on attention mechanism proposed by the literature [34], and this model achieves better classification effect than the traditional LSTM network in the sentiment classification of five specific targets.
e experiments are carried out on our self-built healthcare exercise based corpus to analyze the performance of the proposed method. e experimental results are shown in Tables 1-3. We first compare the accuracy, recall, and F-value of four different methods on our self-built corpus. e horizontal axis corresponds to the different categories of the healthcare exercise corpus. It can be seen that the method proposed in this paper is better than the other three methods in terms of precision, recall, and F1 value. e performance of AT-LSTM is second, and the performance of CNN and SVM is similar, ranking last. At the same time, it can be seen from the tables that on different types of medical and health corpora, the performance of various methods is similar, and only fluctuates within the normal range.
Next, we compare the operating efficiency of the method proposed in this paper with CNN, SVM, and AT-LSTM. e experimental results are shown in Figures 3-4, where the vertical axis represents the training time, the unit is in seconds. Figure 3 only shows the operating efficiency of the method proposed in this paper in different categories of medical and health corpora. It can be seen that the training time of different categories is similar, and there is no obvious difference.
e horizontal axis of Figure 4 represents the number of words. It can be seen from the experimental results that in general, the method proposed in this paper does not have an advantage in terms of training time, and its training time is slightly lower than that of AT-LSTM, but much higher than that of CNN and SVM. As the number of words increases, the training time will gradually increase. Considering that     Journal of Environmental and Public Health the training process can be carried out offline or implemented by a higher-performance computer, although the method proposed in this paper is much less efficient in training than CNN and SVM, from the perspective of performance advantages, the method in this paper is still significant. Better than the other three methods.

Conclusion
For the tense of English verbs, "time" includes "present," "past," "future," and "past future," "tense" includes "general," "perfect," "perform," and "perfect progression." ere are 16 tenses in total. Most of the international academic papers are written in English. For the vast number of Chinese research paper researchers, the tense of English papers is both the key and the difficulty. Scientific papers can generally be divided into six parts: Abstract, Introduction, Related Work, Model and Approach, Experimental Results, and Conclusion, and their writing generally has a rigorous, objective, and refined scientific style. From a microscopic point of view, scientific papers must also present some regular language features, including tense, voice, and personal usage. In order to automatically extract and analyze English tenses in scientific and technological papers, this paper designs an English tense analysis based on environmental affection-driven analysis and integrates the computational model of sentiment analysis. In order to take the contextual temporal relevance into account, this paper introduces the attention mechanism and combines the attention mechanism with LSTM to realize the temporal analysis of scientific papers. In order to verify the method proposed in this paper, this paper selects 112 medical and health related scientific and technological papers as research samples to form a corpus to carry out experiments. Compared with conventional convolutional neural network, support vector machine and LSTM based on attention mechanism, the method proposed in this paper has advantages in precision, recall, and F1-score. e experimental results show that our method is significantly better than the other three methods. In the future, the larger and more comprehensive corpus with automation technology should be considered to evaluate our method. Besides, the performance should be further improved for deployment for real cases.

Data Availability
All data used to support the findings of the study are included within this paper.

Conflicts of Interest
e authors declare that there are no conflicts of interest in this paper. Journal of Environmental and Public Health 7